app.filter('slice', function () {
    return function (arr, start, end) {
        arr = arr || [];
        end = end || arr.length;
        return arr.slice(start, end);
    };
});